package level
{
	import org.flixel.*;
	
	import enemy.*;
	import interaction.*;
	import item.*;
	import treasure.*;
	
	/**
	 * ...
	 * @author JAC
	 */
	public class Level_2 extends GameState
	{
		override public function create():void
		{
			super.create();
			
			_maze.load(StaticMaze.level_2);
			
			_player.spawnAt(5, 5);
			
			addItem(new SpeedBoost(8, 5));
			
			var t1:Teleporter = new Teleporter(10, 5);
			var t2:Teleporter = new Teleporter(19, 15);
			t1.other = t2;
			t2.other = t1;
			addInteraction(t1);
			addInteraction(t2);
			
			//var t3:Teleporter = new Teleporter(12, 2);
			//var t4:Teleporter = new Teleporter(12, 8);
			//t3.other = t4;
			//t4.other = t3;
			//addInteraction(t3);
			//addInteraction(t4);
			
			addTreasure(new LootBag(13, 15));
			//addTreasure(new LootBag(17, 15));
			//addTreasure(new LootBag(19, 13));
			addTreasure(new LootBag(19, 9));
			addTreasure(new LootBag(8, 10));
			addTreasure(new LootBag(14, 4));
			
			addEnemy(new Robber(13, 20));
			addEnemy(new Robber(22, 20));
			addEnemy(new Robber(28, 18));
			addEnemy(new Robber(28, 9));
			
			LoggerWrapper.logLevelStart(4, "Level_2");
		}
	}
}